/*
 * @Author: 赵克强 huohuo625@163.com
 * @Date: 2023-11-01 13:20:15
 * @LastEditors: 赵克强 huohuo625@163.com
 * @LastEditTime: 2023-11-01 13:54:47
 * @FilePath: \hy-ui\src\api\app\dataDict.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

export function appDictTypeList(query) {
    return request({
      url: '/app/appDictType/list',
      method: 'get',
      params: query
    })
  }
  export function appDictTypeDetail(dictId) {
    return request({
      url: `/app/appDictType/${dictId}`,
      method: 'get',
    })
  }
  export function appDictTypeAdd(data) {
    return request({
      url: `/app/appDictType`,
      method: 'post',
      data: data
    })
  }
  export function appDictTypeUpdate(data) {
    return request({
      url: `/app/appDictType`,
      method: 'put',
      data: data
    })
  }
  export function appDictTypeDelete(dictIds) {
    return request({
      url: `/app/appDictType/${dictIds}`,
      method: 'delete',
    })
  }

  export function appDictDataList(query) {
    return request({
      url: '/app/appDictData/list',
      method: 'get',
      params: query
    })
  }
  export function appDictDataDetail(dictCode) {
    return request({
      url: `/app/appDictData/${dictCode}`,
      method: 'get',
    })
  }
  export function appDictDataAdd(data) {
    return request({
      url: `/app/appDictData`,
      method: 'post',
      data: data
    })
  }
  export function appDictDataUpdate(data) {
    return request({
      url: `/app/appDictData`,
      method: 'put',
      data: data
    })
  }
  export function appDictDataDelete(dictCodes) {
    return request({
      url: `/app/appDictData/${dictCodes}`,
      method: 'delete',
    })
  }
  